<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>数据类型转换</title>
</head>
<body>
    <script>
        //准备一个变量，赋值为布尔类型内容
        var b1 = true
        console.log(b1)
        console.log(typeof b1)

        //使用 String（）方法进行一下转换
        var s1 = b1.toString()
        console.log(s1)
        console.log(typeof s1)
    </script>
</body>
</html>